]> dgit.raspbian.org Git - gnome-shell.git/commit
notificationDaemon: support file:// or icon theme names for image-path
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Fri, 9 Nov 2018 08:01:28 +0000 (02:01 -0600)
committerFlorian Müllner <fmuellner@gnome.org>
Tue, 13 Nov 2018 14:39:46 +0000 (15:39 +0100)
commit33b8537bf5ba04f6f67b7f5a2e407c8dafd9ef95
treeb6fb602b2e3761792c3edcbada83b18cc97dfe8c
parent361cc6cf921c91a9b505b7f1abbe59d5f69edb95
notificationDaemon: support file:// or icon theme names for image-path

While this sounds counter-intuitive, the image-path hint value might also
be used with URIs or icon names.

As per freedesktop standard:
  The "app_icon" parameter and "image-path" hint should be either an URI
  (file:// is the only URI schema supported right now) or a name in a
  freedesktop.org-compliant icon theme (not a GTK+ stock ID).

Thus the image-path hint should also be parsed as it happens for the
app_icon.

Reuse same logic, by falling back on _iconForNotificationData with the
hint value.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/285
js/ui/notificationDaemon.js